package com.bothin.experiment4.exception;

import com.bothin.experiment4.enums.ResultEnum;


public class SellException extends RuntimeException {
    private Integer code;
    private String lastUrl;

    public SellException(ResultEnum resultEnum,String lastUrl) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
        this.lastUrl = lastUrl;
    }

    public SellException(Integer code, String message,String lastUrl) {
        super(message);
        this.code = code;
        this.lastUrl = lastUrl;
    }
}
